Optimized Compilation of Multiset Rewriting with Comprehensions

نویسندگان

  • Edmund Soon Lee Lam
  • Iliano Cervesato
چکیده

We extend the rule-based, multiset rewriting language CHR with multiset comprehension patterns. Multiset compre-hension provides the programmer with the ability to write multiset rewriting rules that can match a variable number ofentities in the state. This enables implementing algorithms that coordinate large amounts of data or require aggregateoperations in a declarative way, and results in code that is more concise and readable than with pure CHR. We call thisextension CHR . In this paper, we formalize the operational semantics of CHR and define a low-level optimizingcompilation scheme based on join ordering for the efficient execution of programs. We provide preliminary empiricalresults that demonstrate the scalability and effectiveness of this approach. ∗ This paper was made possible by grant NPRP 09-667-1-100, Effective Programming for Large Distributed Ensembles, fromthe Qatar National Research Fund (a member of the Qatar Foundation). The statements made herein are solely the responsibility ofthe authors.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Multiset Discrimination − a Method for Implementing Programming Language Systems Without Hashing

It is generally assumed that hashing is essential to many algorithms related to efficient compilation; e.g., symbol table formation and maintenance, grammar manipulation, basic block optimization, and global optimization. This paper questions this assumption, and initiates development of an efficient alternative compiler methodology without hashing or sorting. Underlying this methodology are se...

متن کامل

Type Checking for a Multiset Rewriting Language

We enhance Gamma, a multiset rewriting language, with a notion of structured multiset. A structured multiset is a set of addresses satisfying speci c relations which can be used in the rewriting rules of the program. A type is de ned by a context-free graph grammar and a structured multiset belongs to a type T if its underlying set of addresses satis es the invariant expressed by the grammar de...

متن کامل

Translating OQL into Monoid Comprehensions — Stuck with Nested Loops?

This work tries to employ the monoid comprehension calculus — which has proven to be an adequate framework to capture the semantics of modern object query languages featuring a family of collection types like sets, bags, and lists — in a twofold manner: First, serving as a target language for the translation of ODMG OQL queries. We review work done in this field and also give comprehension calc...

متن کامل

Maximally Parallel Multiset-Rewriting Systems: Browsing the Configurations

The aim of this research is to produce an algorithm for the software that would let a researcher to observe the evolution of maximally parallel multiset-rewriting systems with permitting and forbidding contexts, browsing the configuration space by following transitions like following hyperlinks in the World-Wide Web. The relationships of maximally parallel multiset-rewriting systems with other ...

متن کامل

The Logical Meeting Point of Multiset Rewriting and Process Algebra: Progress Report

We present a revisited semantics for multiset rewriting founded on the left sequent rules of linear logic in its LV presentation. The resulting interpretation is extended with a majority of linear connectives into the language of ωmultisets. It drops the distinction between multiset elements and rewrite rules, and considerably enriches the expressive power of standard multiset rewriting with em...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014